package top.malaoshi.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import top.malaoshi.entity.Notice;
import top.malaoshi.model.JsonResult;


@Component
@FeignClient(value="NOTICE-SERVICE") //微服务名称
public interface NoticeClient {


    @PostMapping(value="/sendNotice")
    public JsonResult follow(Notice notice);


    @GetMapping(value="/getNoticeById/{id}")
    public JsonResult getNotice(@PathVariable("id") String id);


}